package com.mcmaster.android;

import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.List;

import com.mcmaster.android.data.BuildingDatabase;
import com.mcmaster.android.data.Tour;
import com.mcmaster.android.data.TourDatabase;
import com.mcmaster.android.menus.MainMenu;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

public class AndroidPhoneProjectActivity extends Activity 
{	
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.default_layout);
        
        try {
			BuildingDatabase.init(this, R.raw.building_database);
			TourDatabase.init(this, R.raw.tour_database);
		} catch (FileNotFoundException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}

        
        
        finish(); // This mode is needed only once.
        startActivity(new Intent(this, MainMenu.class));
    }
}